public class t1 {
    public static void main(String[] args) {
        for (int year = 1988; year <= 2019; year++) {
            if (isLeapYear(year)) {
                System.out.println(year + " 是闰年");
            }
        }
    }
    public static boolean isLeapYear(int year) {
        return (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0);
    }
}
